package com.wdl.modules.myhouse.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wdl.modules.myhouse.entity.sys.SysUserEntity;
import com.wdl.modules.myhouse.vo.PageVO;
import com.wdl.modules.myhouse.vo.SysUserAddVO;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author 昏昏的君
 */
public interface SysUserService  extends IService<SysUserEntity> {

    /**
     * 获取所有用户细节
     * @return
     */
    Map<Integer, Object> getAllUserDetails();

    /**
     * 分页获取用户数据
     */
    Map<Integer,Object> getUserInfoByPage(@Param("page")PageVO page);

    /**
     * 保存用户信息
     * @return
     */
    boolean saveUserWithDetail(SysUserAddVO vo);

    void updateDetailById(Integer id, SysUserAddVO vo);
}
